package com.cloudbroker.bcs.platform.dav.middle.task;

import javax.annotation.Resource;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.cloudbroker.bcs.platform.dav.middle.extservice.hsopen.HsOpenService;
import com.cloudbroker.bcs.platform.dav.middle.task.base.SimpleLeaderTakeTask;

@Component
public class StockUpdateTask extends SimpleLeaderTakeTask {
    @Resource
    private HsOpenService hsOpenService;

    @Scheduled(cron="${task.stockUpdateTask.execute.cron}")
    @Override
    public void doTask() {
		hsOpenService.stockUpdate();
    }
    
}
